export default {
  computed: {
    mainColor() {
      const { mainColor } = getApp().globalData
      return mainColor ? mainColor.value : '#4169E1'
    },
  },
  methods: {
    getObjParams(data = {}) {
      return {
        ...data,
        token: uni.getStorageSync('token'),
      }
    },
  },
}
